package com.dimples.dd.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dimples.dd.tenant.core.dataobject.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 岗位信息表
 */
@Schema(description="岗位信息表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "system_post")
public class SystemPostDO extends TenantBaseDO {
    /**
     * 岗位ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    @Schema(description="岗位ID")
    private Long id;

    /**
     * 岗位编码
     */
    @TableField(value = "code")
    @Schema(description="岗位编码")
    private String code;

    /**
     * 岗位名称
     */
    @TableField(value = "`name`")
    @Schema(description="岗位名称")
    private String name;

    /**
     * 显示顺序
     */
    @TableField(value = "sort")
    @Schema(description="显示顺序")
    private Integer sort;

    /**
     * 状态（0正常 1停用）
     */
    @TableField(value = "`status`")
    @Schema(description="状态（0正常 1停用）")
    private Byte status;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description="备注")
    private String remark;
}